#@layout()

#define main()
<div class="wrap" id="wrap">
	<div class="container">
		<div class="row">
			<div class="main clearfix">
				<div class="col-xs-12 col-md-9 side-left">
					<div class="shadow-box">
						<div class="filter">
							<ul class="">
								<li><a class="active" href="?ord=newest">最新的</a></li>
								<li><a href="?ord=hottest">热门的</a></li>
							</ul>
						</div>
							<div class="posts-list">
								#if(!questionPage.getList())
									<div class="col-xs-12 col-md-12 no-content">
										<p>对不起，暂时没有内容</p>
									</div>
								#end
								#for(question : questionPage.getList())
								<div class="posts-item">
									<div class="qus-rank">
										<div class="answers">
											<span>2</span>
											<small>回答</small>
										</div>
										<div class="views hidden-xs">
								            <span>23</span>
								            <small>浏览</small>
								        </div>
									</div>

									<div class="summary">
										<h2 class="title">
											<a href="/view/question/#(question.id)">#(question.title)</a>
										</h2>
										<div class="foot-block clearfix">
											<div class="author">
												<span><a href="/user/#(question.userId)">#(question.nickName)</a></span>
												<time>#date(question.createAt, "yyyy-mm-dd")</time>
											</div>
											#if(question.tags)
												<ul class="tags">
													#for(tag : (question.tags).split(','))
										            <li>
						                        		<a class="tag tag-sm" href="/tag/#(tag)">#(tag)</a>
						                    		</li>
						                    		#end
										        </ul>
									        #end
										</div>
									</div>
								</div>
								#end
						</div>
					</div>
				</div>

				<!--热门用户-->
				<div class="col-xs-12 col-md-3 side-right side-right-edit">
				#include("/_view/index/common/hot_user.html")
				<!--热门标签-->
				#include("/_view/index/common/hot_tag.html")
				<!--热门话题-->
				#include("/_view/index/common/hot_post.html")	
				<!--最新发表-->
				#include("/_view/index/common/new_post.html")
				</div>
			</div>
		</div>
	</div>
</div>
#end